package com.sc.nft.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sc.nft.enums.IncomeHierarchyEnum;
import com.sc.nft.enums.IncomeTypeEnum;
import com.sc.nft.sup.SuperEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * (sc_user_income_record)实体类
 *
 * @author Sun
 * @description 由 Mybatisplus Code Generator 创建
 * @since 2022-09-20 18:32:41
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sc_user_income_record")
public class UserIncomeRecord extends SuperEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 收益金额
     */
    private BigDecimal amount;
    /**
     * 订单Id
     */
    private Long orderId;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 收益类型
     */
    private IncomeTypeEnum incomeType;
    /**
     * 收益类型
     */
    private String incomeTypeName;
    /**
     * 收益层级
     */
    private IncomeHierarchyEnum incomeHierarchy;
    /**
     * 收益层级
     */
    private String incomeHierarchyName;
    /**
     * 订单编号
     */
    private String orderNo;
    /**
     * 奖励基数
     */
    private BigDecimal incomeCardinality;
    /**
     * 奖励比例
     */
    private String incomeProportion;
    /**
     * 来源于用户的id
     */
    private Long sourceUserId;
    /**
     * 用户数量
     */
    private String incomeUserNum;
    /**
     * 权重
     */
    private String weightsNum;
    /**
     * 描述
     */
    @TableField("`describe`")
    private String describe;
}